package com.ad.payload.enums;

/**
 * @author dxgong
 * @日期 2019/6/3  0003
 * @注释: 启用/ 禁用
 */
public enum DeleteStatusEnum {

    UN_DELETE(0, "未删除"),

    DELETE(1, "已删除");

    private Integer code;
    private String value;

    DeleteStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static String[] getArr() {
        String[] enumArr = new String[DeleteStatusEnum.values().length];
        DeleteStatusEnum[] values = DeleteStatusEnum.values();
        for (DeleteStatusEnum item : values) {
            enumArr[item.getCode()] = item.getValue();
        }
        return enumArr;
    }
}
